package top.wfzzq.ds;

import java.util.Stack;
/**
 * 
 * @author wanghui
 *
 */
public class MyStackDemo {
	public static void main(String[] args) {
		Mystack<Integer> stack=new Mystack<>();
		System.out.println(stack.isEmpty());
		System.out.println(stack.size());
		stack.push(100);
		stack.push(900);
		stack.push(39);
		System.out.println(stack.isEmpty());
		System.out.println(stack.size());
		System.out.println(stack.peek());
		System.out.println("==================================");
		while(!stack.isEmpty()) {
			System.out.println(stack.pop());
		}
		System.out.println("==================================");
		stack.push(100);
		stack.push(200);
		System.out.println(stack.pop());
		stack.push(300);
		System.out.println(stack.peek());
		System.out.println(stack.pop());
		System.out.println("系统的栈==================================");
		Stack<String> s=new Stack<>();
		s.push("秦华平");
		s.push("徐俊");
		System.out.println(s.pop());
	    s.push("李奧");  
	    System.out.println(s.pop());
	    System.out.println(s.peek());
	}

}
